package com.ruoyi.evalution.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ruoyi.evalution.domain.LabEvalutionTarget;

/**
 * 评试对象Mapper接口
 * 
 * @author winner pan
 * @date 2022-04-15
 */
public interface LabEvalutionTargetMapper 
{
    /**
     * 查询评试对象
     * 
     * @param participatorId 评试对象ID
     * @return 评试对象
     */
    public LabEvalutionTarget selectLabEvalutionTargetById(Long participatorId);

    /**
     * 查询评试对象列表
     * 
     * @param labEvalutionTarget 评试对象
     * @return 评试对象集合
     */
    public List<LabEvalutionTarget> selectLabEvalutionTargetList(LabEvalutionTarget labEvalutionTarget);

    /**
     * 新增评试对象
     * 
     * @param labEvalutionTarget 评试对象
     * @return 结果
     */
    public int insertLabEvalutionTarget(LabEvalutionTarget labEvalutionTarget);

    /**
     * 修改评试对象
     * 
     * @param labEvalutionTarget 评试对象
     * @return 结果
     */
    public int updateLabEvalutionTarget(LabEvalutionTarget labEvalutionTarget);

    /**
     * 删除评试对象
     * 
     * @param participatorId 评试对象ID
     * @return 结果
     */
    public int deleteLabEvalutionTargetById(Long participatorId);

    /**
     * 批量删除评试对象
     * 
     * @param participatorIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteLabEvalutionTargetByIds(Long[] participatorIds);
    
    public int deleteLabEvalutionTargetByEvalution(Long evalutionId);

    List<LabEvalutionTarget> getLaboratoryEvaluationList(String userName);
    
    List<LabEvalutionTarget> selectReportHisList(LabEvalutionTarget labEvalutionTarget);
    List<LabEvalutionTarget> selectMarkScoreList(LabEvalutionTarget labEvalutionTarget);
    
    public LabEvalutionTarget selectLabEvalutionTargetScoreById(@Param("participatorId")Long participatorId, @Param("userName")String userName);
}
